using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Comteck.Dto.Sys {
  /// <summary>
  /// 
  /// </summary>
  public class PrintTemplateDataDto : NotifyViewModel {
    /// <summary>
    /// 菜单编码
    /// </summary>
    public virtual string Id { get => _Id; set => SetProperty(ref _Id, value); }
    private string _Id;

    /// <summary>
    /// 模板ID
    /// </summary>
    public virtual string Template_Id { get => _Template_Id; set => SetProperty(ref _Template_Id, value); }
    private string _Template_Id;

    /// <summary>
    /// 数据源名称
    /// </summary>
    [Display(Name = "数据源名称")]
    [Required(ErrorMessage = "{0} 不能为空")]
    [MaxLength(length: 50, ErrorMessage = "{0} 最大长度为 {1}.")]
    public virtual string Name { get => _Name; set => SetProperty(ref _Name, value); }
    private string _Name;

    /// <summary>
    /// SQL语句
    /// </summary>
    public virtual string Sql { get => _Sql; set => SetProperty(ref _Sql, value); }
    private string _Sql;

    /// <summary>
    /// 排序
    /// </summary>
    public virtual int SeqNo { get => _SeqNo; set => SetProperty(ref _SeqNo, value); }
    private int _SeqNo;

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string Description { get => _Description; set => SetProperty(ref _Description, value); }
    private string _Description;
  }
}
